﻿using Acme.BookStore.Ball;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace Acme.BookStore.BallDto
{
    public class BallDto:AuditedEntityDto<Guid>
    {
        public string Name { get; set; }
        public BallType Type { get; set; }
        public decimal Price { get; set; }
        public BallBrand Brand { get; set; }
        public string Hobby { get; set; }
        public string[] HobbyList => Hobby?.Split(',', StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
    }
}
